/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package model.dao.services;

import java.util.List;
import model.entities.News;
import model.entities.NewsType;
import model.entities.User;

/**
 *
 * @author Hieu.Nguyen
 */
public interface NewsDAOServices {
    public List<News> getAllNews();
    public News getByNewsID(int idNews);
    public User getByUserID(int idUser);
    public NewsType getByNewsTypeID(int idNewsType);
    public boolean createNews(News news);
    public boolean updateNews(News news);
    public boolean enableNews(int idNews, boolean isActived);
    public boolean deleteNews(int idNews);
}
